package com.jingtai.core.entity.merchants;


import com.baomidou.mybatisplus.annotation.TableName;
import com.jingtai.core.entity.BaseEntity;
import com.jingtai.validate.swagger.CApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import io.swagger.annotations.*;

import java.math.BigDecimal;

import java.util.Date;

/**
 * 商户自营订单表
 * 
 * @author sunlaiqian
 * @date 2020-12-02 15:08:11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_merchants_proprietary_order")
@ApiModel(value = "商户自营订单表", description = "商户自营订单表")
public class MerchantsProprietaryOrder  extends BaseEntity implements Serializable {




	/**
	 * 商户自营订单号
	 */
	@CApiModelProperty(value = "商户自营订单号",required = true,cNotEmpty = true)
	private String merchantsProprietaryCode;

	/**
	 * 订单总编号
	 */
	@CApiModelProperty(value = "订单总编号",required = true,cNotEmpty = true)
	private String orderTotalCode;

	/**
	 * 订单自编号
	 */
	@CApiModelProperty(value = "订单自编号",required = true,cNotEmpty = true)
	private String orderChildCode;

	/**
	 * 用户ID
	 */
	@CApiModelProperty(value = "用户ID",required = true,cNotEmpty = true)
	private Long memberId;

	/**
	 * 用户收货地址ID
	 */
	@CApiModelProperty(value = "用户收货地址ID",required = true,cNotEmpty = true)
	private Long memberAddressId;

	/**
	 * 订单金额
	 */
	@CApiModelProperty(value = "订单金额",required = true,cNotEmpty = true)
	private BigDecimal orderPrice;

	/**
	 * 运费
	 */
	@CApiModelProperty(value = "运费",required = true,cNotEmpty = true)
	private BigDecimal freight;

	/**
	 * 支付金额
	 */
	@CApiModelProperty(value = "支付金额",required = true,cNotEmpty = true)
	private BigDecimal payPrice;

	/**
	 * 订单状态 10.待支付 20.待发货30.已发货40.待评价 50.已完成60.已取消70无效订单
	 */
	@CApiModelProperty(value = "订单状态 10.待支付 20.待发货30.已发货40.待评价 50.已完成60.已取消70无效订单",required = true,cNotEmpty = true)
	private Integer orderState;

	/**
	 * 确认收货时间
	 */
	@CApiModelProperty(value = "确认收货时间",required = true,cNotEmpty = true)
	private Date sureGoodsTime;

}
